package net.wofly.right.repository;

import net.wofly.right.domain.Customer;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface CustomerRepository extends PagingAndSortingRepository<Customer, String>, JpaSpecificationExecutor<Customer> {

    List<Customer> findByOrganizationTypeNotIn(List<String> organiztionTypes);

    List<Customer> findByOrganizationTypeAndFollowUserID(String organiztionType, String followUserID);
    
    List<Customer> findByUserType(Integer userType) ;
}
